#ifndef FASYS_LIBS_API_SUBSCRIBE_JSON_HPP
#define FASYS_LIBS_API_SUBSCRIBE_JSON_HPP

#include "subscribe.hpp"
#include "names.hpp"
#include <fas/misc/json.hpp>

namespace fasys{ namespace api{

namespace aj = ::fas::json;
namespace ap = ::fas::pattern;

typedef
  aj::object<
    subscribe,
    ap::type_list_n<
        aj::member<n_uuid,    subscribe, std::string, &subscribe::uuid>,
        aj::member<n_key,     subscribe, std::string, &subscribe::key>,
        aj::member<n_timeout, subscribe, time_t,      &subscribe::timeout>
    >::type
  > subscribe_json;

}}

#endif
